/*
 * MethodFacade.java
 *
 * Copyright 2007, 2008 Tiberiumlabs
 *
 * This file is part of Tiberiumlabs Lailaps.
 *
 * Tiberiumlabs Lailaps is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tiberiumlabs Lailaps is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.tiberiumlabs.lailaps.threads.single;

import java.io.IOException;
import java.io.InputStream;
import java.util.ResourceBundle;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * interface for url retrieving method. use it as stream implementation
 *
 * @author <a href="mailto:paranoid.tiberiumlabs@gmail.com">Paranoid</a>
 */
public interface MethodFacade {

    public static final Log log = LogFactory.getLog(MethodFacade.class);

    public void setBundle(ResourceBundle bundle);

    public void setUrl(String url);

    public void setOffset(long offset);

    public void execute() throws IOException;

    public long getLength();

    public long getDate();

    public InputStream getInputStream() throws IOException;

    public void close() throws IOException;

    public void abort() throws IOException;

}
